
export function downloadFileByBlob(blob, fileName) {
    const url = URL.createObjectURL(blob);
    let a = document.createElement('a');
    a.style.display = 'none';
    a.href = url;
    a.setAttribute('download', fileName);
    document.body.appendChild(a);
    a.click();
    // 清除数据
    document.body.removeChild(a);
    a = null;
    URL.revokeObjectURL(url);
}